const orderGoodDao = require('../dao/orderGoodDao');

//增加服务
module.exports.insert = async function ( service ){
    return await orderGoodDao.insert( service )
}

//删除服务
module.exports.delete = async function ( id ){
    try{
        return await orderGoodDao.delete( id )
    }catch(e){
        return {};
    }
    
}

// 查询服务
module.exports.find = async function ( searchObj, page ){
    return await orderGoodDao.find( searchObj, page )
}

// 通过服务的id查询
module.exports.findById = async function ( id ){
    return await orderGoodDao.findById(id);
}